package com.example.merchant;

import com.example.merchant.entity.Customer;
import com.example.merchant.entity.User;
import com.example.merchant.service.MockDatabase;

import java.util.ArrayList;


public class Merchant2 {
    public static void main(String[] args){

       // User U1 =new User("张三","男",5);
       // User U2 =new User(4);
        //User U1 =new User("张三","男",5);
        // User U2 =new User(4);


        //Coupon CouponA = new Coupon(5);
        //Coupon CouponB = new Coupon(11);

        //faFang1(U1,CouponA);
        //faFang2(U2,CouponB);

    }
    /*public static void faFang1(User U,Coupon A){
        //System.out.println(U.name+U.sex+A.name);

        if (U.age<=18 && U.sex=="女") {
            System.out.println(U.name+"获得了优惠卷"+A.name);
        }else {
            System.out.println("用户不满足优惠劵A发放条件");
        }
    }
    public static void faFang2(User U,Coupon B){
        int x=1;
        while (x<= U.sum/2){
            System.out.println("发放优惠劵B给用户");
            x++;
        }
        System.out.println("优惠劵B已发完");
    }
    */
}
